// 反馈列表api
import request from '@/utils/request'
import { getToken } from '@/utils/token'
// 发送不喜欢文章的接口方法
export const dislikesArticleApi = (artId) => {
  return request({
    url: '/v1_0/article/dislikes',
    method: 'POST',
    headers: {
      Authorization: `Bearer ${getToken()}`
    },
    data: {
      target: artId
    }
  })
}

// 举报文章接口方法
export const reportArticleApi = ({
  target,
  type
}) => {
  return request({
    url: '/v1_0/article/reports',
    method: 'POST',
    headers: {
      Authorization: `Bearer ${getToken()}`
    },
    data: {
      target: target,
      type: type,
      remark: '其他问题'
    }
  })
}
